{% extends 'basic_app/master.html' %}
{% block tag_left %}
    {% include 'basic_app/tag_left_user.html' %}
{% endblock %}
{% block userinfo %}
    <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        <h2 class="page-header">实例详情页</h2>
        <form class="form-horizontal" action={{ request.path }}   method="post">
            <div class="form-group" style="display:none">
                <label class="col-sm-2 control-label">id：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="v_id" value="{{ more_result.id }}" placeholder="id"
                           readonly="true">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">db_info：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="主机名" name="add_dbname"
                           value="{{ more_result.dbname }}" readonly="true">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">Ip：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="IP" name="add_ip"
                           value="{{ more_result.ip }}" readonly="true">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">Port：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="端口" name="add_port"
                           value="{{ more_result.port }}" readonly="true">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">Sid：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="实例名" name="add_sid"
                           value="{{ more_result.sid }}" readonly="true">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">service_name：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="服务名" name="add_service_name"
                           value="{{ more_result.service_name }}" readonly="true">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">Conn_string：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="连接串" name="add_conn_string"
                           value="{{ more_result.conn_string }}" readonly="true">
                </div>
            </div>


            <div class="form-group">
                <label class="col-sm-2 control-label">Status：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="实例状态" name="add_status"
                           value="{{ more_result.status }}" readonly="true">
                </div>
            </div>
             <div class="form-group">
                <label class="col-sm-2 control-label">active_check：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="是否存活" name="add_status"
                           value="{{ more_result.ins_active }}" readonly="true">
                </div>
            </div>
             <div class="form-group">
                <label class="col-sm-2 control-label">active_check_msg：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="检测信息" name="add_status"
                           value="{{ more_result.ins_active_msg }}" readonly="true">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">active_check_time：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="检测时间" name="add_status"
                           value="{{ more_result.ins_active_time }}" readonly="true">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">Cr_time：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="创建时间" name="add_crtime"
                           value="{{ more_result.crtime }}" readonly="true">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">Ch_time：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="修改时间" name="add_chtime"
                           value="{{ more_result.chtime }}" readonly="true">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">Remark：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="备注" name="add_remark"
                           value="{{ more_result.remark }}"   readonly="true">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">Type：</label>
                <div class="col-sm-10">
                    <select class="form-control" id="dept_select" name="add_dept"
                            type="{{ more_result.type }}" readonly="true">
                        <option>ORACLE</option>
                        <option>MYSQL</option>
                    </select>
                </div>
            </div>
            <div class="col-sm-10">
                <div style="text-align:center;vertical-align:middle;">
                    <button type="submit" class="btn ">返回</button>
                </div>
            </div>
        </form>
    </div>
{% endblock %}
{% block script %}
    <script>
        window.onload = function () {
            var dept_set = document.getElementById("dept_select").getAttribute("type");
            document.getElementById('dept_select').value = dept_set;
        }
    </script>
{% endblock %}